package com.pwser.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.pwser.entity.User;

@Mapper
public interface UserMapper {
	
	public User getUserById(Integer id);
	
	public int addUser(@Param("id") Integer id, @Param("name") String name);
	
	public int editUser(@Param("id") Integer id, @Param("name") String name);
	
	public boolean delUser(Integer id);
	
	public List<User> getAllUsers();
	
	public List<User> getUsersByCondition(@Param("user") User user);
	
}
